import axios from 'axios'

export default {

    //获取圈子table数据
    getCircleTable(callback,pageNum){
        axios.get('/v1/api/admin/circle/table?pageNum='+pageNum).then(response =>{
            callback(response.data.data);
        })
    },

    //点击圈子获取圈子动态数据
    getCircleMoment(callback){
        axios.get('/v1/api/admin/circleMoment').then(response =>{
            callback(response.data);
        })
    },

    //创建圈子
    createCircle(circleData){
        axios.post('/v1/api/admin/circle',circleData,{headers:{
           'Content-Type': 'multipart/form-data'
          }}).then(response => {
           
        })
    }
}